package com.ss.android.article.base.feature.detail2.video.a;

import android.content.Intent;
import android.net.Uri;
import android.view.View;
import com.bytedance.article.common.c.TTUtils;
import com.ss.android.article.base.feature.detail.model.WebInfo;
import com.ss.android.newmedia.activity.browser.BrowserActivity;

final class s implements View.OnClickListener {
    private final l b;
    private final WebInfo a;

    s(l arg1, WebInfo arg2) {
        this.b = arg1;
        this.a = arg2;

    }

    public final void onClick(View arg4) {
        if(TTUtils.isValidUrl(this.a.webUrl)) {
            Intent v0 = new Intent(this.b.g, BrowserActivity.class);
            v0.putExtra("title", this.a.webTitle);
            v0.setData(Uri.parse(this.a.webUrl));
            this.b.g.startActivity(v0);
        }
        else {
            this.b.g.startActivity(new Intent("android.intent.action.VIEW", Uri.parse(this.a.webUrl)));
        }
    }
}

